﻿using ServiceStack.Text;
using SolrNet.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Application
{
    public class SolrEntity
    {

        [SolrUniqueKey("id")]
        public virtual string RecordId { get; set; }

        [SolrField("reckey")]
        public virtual string RecordKey { get; set; }

        [SolrField("dbkey")]
        public virtual string DatabaseUniqueKey { get; set; }

        [SolrField("dbname")]
        public virtual string DatabaseName { get; set; }

        [SolrField("tblname")]
        public virtual string TableName { get; set; }

        [SolrField("tstdata")]
        public virtual object Data { get; set; }

        public SolrEntity(string id, object data)
        {
            RecordId = id;
            Data = data;
        }

        public SolrEntity()
        {

        }
        
    }
}
